/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.xd.client;

import com.xy.biz.xd.domain.req.GetTechniqueRequest;
import com.xy.biz.xd.domain.req.ListTechniqueRequest;
import com.xy.biz.xd.domain.resp.GetTechniqueResponse;
import com.xy.lang.domain.Page;
import com.xy.lang.domain.Result;

import java.util.Collection;
import java.util.List;

/**
 *
 *
 * @author zgy
 * @date 2022-1-11
 */
public interface TechniqueClient {

	/**
	 * 查找一个
	 *
	 * @param request
	 * @return
	 */
	Result<GetTechniqueResponse> getTechnique(GetTechniqueRequest request);

	/**
	 * 查找多个
	 *
	 * @param collection 标识集合
	 * @return
	 */
	Result<List<GetTechniqueResponse>> listTechniqueById(Collection<Long> collection);

	/**
	 * 查找多个
	 *
	 * @param request 查找条件
	 * @return
	 */
	Result<List<GetTechniqueResponse>> listTechnique(ListTechniqueRequest request);

	/**
	 * 统计个数
	 *
	 * @param request 查找条件
	 * @return
	 */
	Result<Integer> countTechnique(ListTechniqueRequest request);

	/**
	 * 分页查找
	 *
	 * @param request 查找条件
	 * @return
	 */
	Result<Page<GetTechniqueResponse>> pageTechnique(ListTechniqueRequest request);

}
